﻿<Window x:Class="winSelectDatabase"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:wfi="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
    xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
    xmlns:res="clr-namespace:Caps.Console.My.Resources"
    Title="{x:Static res:Resources.txt_SelectDatabase}"
    Height="400" Width="300" Icon="/CapsConsole;component/Resources/Cap.ico"
    ShowInTaskbar="False"
>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="2*"/>
        </Grid.ColumnDefinitions>
        <wfi:WindowsFormsHost Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="4">
            <wf:PropertyGrid Name="prgProperties" Dock="Fill" x:Name="prgProperties"/>
        </wfi:WindowsFormsHost>
        <Grid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="4" Height="auto" HorizontalAlignment="Stretch">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="auto" />
            </Grid.ColumnDefinitions>
            <Label Grid.Column="0" Content="{x:Static res:Resources.lbl_ImageRoot}" HorizontalAlignment="Right" VerticalAlignment="Center" ToolTip="{x:Static res:Resources.tot_ImageRootLeaveEmpty}" />
            <TextBox Grid.Column="1" Name="txtImageRoot" HorizontalAlignment="Stretch" VerticalAlignment="Center" ToolTip="{x:Static res:Resources.tot_ImageRootLeaveEmpty}"/>
            <Button Grid.Column="2" Name="btnImageRoot" Content="{x:Static res:Resources.cmd_Browse}" ToolTip="{x:Static res:Resources.tot_Browse}" HorizontalAlignment="Center" VerticalAlignment="Center" />
        </Grid>
        <Button Grid.Column="0" Grid.Row="2" Padding="3,0,3,0" HorizontalAlignment="Center" Name="btnOK" IsDefault="True" Content="{x:Static res:Resources.cmd_OK}"/>
        <Button Grid.Column="1" Grid.Row="2" Padding="3,0,3,0" HorizontalAlignment="Center" Name="btnTest" Content="{x:Static res:Resources.cmd_Test}" ToolTip="{x:Static res:Resources.tot_Test}"/>
        <Button Grid.Column="2" Grid.ColumnSpan="1" Grid.Row="2"  Name="btnWizard" VerticalAlignment="center" HorizontalAlignment="Center" Width="auto" Height="auto" Content="{x:Static res:Resources.cmd_UseWizard}"/>
        <Button Grid.Column="3" Grid.Row="2" Padding="3,0,3,0" HorizontalAlignment="Center" Name="btnCancel" IsCancel="True" Content="{x:Static res:Resources.cmd_Cancel}"/>
        <Button Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="3" Padding="3,0,3,0" HorizontalAlignment="Center" VerticalAlignment="Center" Name="btnDbSettings" Content="{x:Static res:Resources.cmd_DatabaseSettings}" ToolTip="{x:Static res:Resources.tot_DatabaseSettings}"/>
    </Grid>
</Window>
